package com.qyhl.webtv.module_broke.serviceimpl;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.webtv.basiclib.base.BaseFragment;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.BrokeService;
import com.qyhl.webtv.commonlib.utils.inter.HomeActivityInterface;
import com.qyhl.webtv.module_broke.scoop.ScoopHomeFragment;
import com.qyhl.webtv.module_broke.scoop.addscoop.ScoopAddPictureFragment;

/**
 * 爆料服务
 * @author helin
 * @date  2019年5月13日16:38:18
 */
@Route(path = ServicePathConstant.BROKE_SERVICE)
public class BrokeServiceImpl implements BrokeService {

    @Override
    public BaseFragment getFragment(boolean isSingle, int topicId) {
        return ScoopHomeFragment.newInstance(isSingle, topicId) ;
    }

    @Override
    public BaseFragment getScoopHomeFragment(String menuName,boolean isHome) {
        return ScoopHomeFragment.newInstance(menuName,isHome) ;
    }

    @Override
    public BaseFragment getScoopAddPictureFragment(String menuName, HomeActivityInterface clickCallBack, boolean isOnlyPicture) {
        return ScoopAddPictureFragment.newInstance(menuName,clickCallBack);
    }

    @Override
    public void init(Context context) {

    }
}
